package com.yorick.common.Result;

import java.util.HashMap;
import java.util.Map;

/**
 * @author 陈治杰
 * @Title: ResultMsg
 * @Description: 方法返回值通用抽象类
 * @date 2018/10/1517:50
 */
public abstract class Result {

    private Map<String,Object> resultMap;

    public Result(String flag,String msg,Object obj) {
        Map<String,Object> map=new HashMap<>();
        map.put("flag",flag);
        map.put("msg",msg);
        map.put("result",obj);
        this.resultMap=map;
    }

    public Map<String, Object> getResultMap() {
        return resultMap;
    }

    public void setResultMap(Map<String, Object> resultMap) {
        this.resultMap = resultMap;
    }
}
